<div class="form-container">
<div class="validation-errors" id="validationErrors" style="display:none;"></div>
<div class="walk-register-buttons" style="float: left;">
<a href="<?php echo( base_url() ); ?>cmb/registration_home/" target="_self">New Member Registration Home</a>
</div>
<?php
	Includes::IncludeFile( Includes::$FORM );
	Includes::IncludeFile( Includes::$SPACER );

	echo( form_open(base_url() . 'cmb/member_registration/step1_process/', array('id' => 'registrationForm') ) );

		Spacer::Render(0, 50);
		
		//Which CMB center
		Form::OpenFormItem('Chinmaya Center*:', 260);
			//$cmbCenterOptions = array('Andover'=>'Andover','MetroWest'=>'MetroWest');
			$cmbCenterOptions = array(''=>'Select','Andover'=>'Andover','MetroWest'=>'MetroWest');
			echo( form_dropdown('cmbCenter', $cmbCenterOptions, '', 'id="cmbCenter" style="width: 100px;" onchange="CMBCenterChangeHandler();"') );
		Form::CloseFormItem();	
		
		echo('<div id="centerAndover" style="display: none; ">');		
		//Primary member info
		//----------------------------------------
		Spacer::Render(0, 15);
		echo('<b>Primary Member Info</b>');
		echo('<hr />');
		Form::OpenFormItem('Primary Member First Name*:', 260);
			echo( form_input(array('name'=>'firstName','id'=>'firstName','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Primary Member Last Name*:', 260);
			echo( form_input(array('name'=>'lastName','id'=>'lastName','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Security question*:', 260);
			$phraseOptions = array(''=>'Select','Fathers name'=>'Fathers name','Mothers name'=>'Mothers name','City you were born'=>'City you were born','Favorite color'=>'Favorite color','First company'=>'First company','Other'=>'Other');
			echo( form_dropdown('question', $phraseOptions, '', 'id="question" style="width: 150px;" ') );
		Form::CloseFormItem();	
		Form::OpenFormItem('Answer to security question?*:', 260);
			echo( form_input(array('name'=>'secretPhrase','id'=>'secretPhrase','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Primary Member Gender*:', 260);
			$genderOptions = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('gender', $genderOptions, '', 'id="gender" style="width: 75px;" ') );
		Form::CloseFormItem();	
		Form::OpenFormItem('Primary Member Email*:', 260);
			echo( form_input(array('name'=>'primaryEmail','id'=>'primaryEmail','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Confirm Primary Member Email*:', 260);
			echo( form_input(array('name'=>'primaryEmailConfirm','id'=>'primaryEmailConfirm','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Primary Member Home Phone*: </br><font size="2" color="red">(xxx-xxx-xxxx)</font>', 260);
			echo( form_input(array('name'=>'homePhoneNumber','id'=>'homePhoneNumber','maxlength'=>'12','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Primary Member Mobile Phone*: </br><font size="2" color="red">(xxx-xxx-xxxx)</font>', 260);
			echo( form_input(array('name'=>'mobilePhoneNumber','id'=>'mobilePhoneNumber','maxlength'=>'12','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Company name (0ptional):', 260);
			echo( form_input(array('name'=>'company','id'=>'company','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Interested in volunteering (check all that apply):', 360);
		Form::CloseFormItem();
		Spacer::Render(0, 2);
		echo( form_checkbox('volArea1', 'Temple', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Temple', 'temple', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea2', 'Balavihar', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Balavihar', 'balavihar', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea3', 'Language', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Language', 'language', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea4', 'Seva', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Seva', 'seva', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea5', 'Spiritual', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Spiritual', 'spiritual', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea6', 'Cultural', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Cultural', 'cultural', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea7', 'Marketing', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Marketing', 'marketing', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea8', 'Website', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Website', 'website', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea9', 'Accounting', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Accounting', 'accounting', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea10', 'Fund-Raising', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Fund-Raising', 'fundraising', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea11', 'Audio-Visual', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Audio-Visual', 'audiovisual', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea12', 'Event-Logistics', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Event-Logistics', 'eventlogistics', 'style="width: 20px;" ') );

		//----------------------------------------
				
		//Spouse info
		//----------------------------------------
		Spacer::Render(0, 20);
		echo('<b>Spouse Info</b>');
		echo('<hr />');
		Form::OpenFormItem('Spouse First Name:', 260);
			echo( form_input(array('name'=>'spouseFirstName','id'=>'spouseFirstName','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Last Name:', 260);
			echo( form_input(array('name'=>'spouseLastName','id'=>'spouseLastName','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Gender*:', 260);
			$genderOptions = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('spouseGender', $genderOptions, '', 'id="spouseGender" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Email*:', 260);
			echo( form_input(array('name'=>'spouseEmail','id'=>'spouseEmail','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Confirm Spouse Email*:', 260);
			echo( form_input(array('name'=>'spouseEmailConfirm','id'=>'spouseEmailConfirm','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Home Phone Number*: </br><font size="2" color="red">(xxx-xxx-xxxx)</font>', 260);
			echo( form_input(array('name'=>'spousePhone','id'=>'spousePhone','maxlength'=>'12','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Mobile Phone Number*: </br><font size="2" color="red">(xxx-xxx-xxxx)</font>', 260);
			echo( form_input(array('name'=>'spouseMobilePhone','id'=>'spouseMobilePhone','maxlength'=>'12','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Interested in volunteering (check all that apply):', 360);
		Form::CloseFormItem();
		Spacer::Render(0, 2);
		echo( form_checkbox('spouseVolArea1', 'Temple', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Temple', 'temple', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea2', 'Balavihar', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Balavihar', 'balavihar', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea3', 'Language', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Language', 'language', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea4', 'Seva', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Seva', 'seva', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea5', 'Spiritual', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Spiritual', 'spiritual', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea6', 'Cultural', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Cultural', 'cultural', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea7', 'Marketing', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Marketing', 'marketing', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea8', 'Website', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Website', 'website', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea9', 'Accounting', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Accounting', 'accounting', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea10', 'Fund-Raising', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Fund-Raising', 'fundraising', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea11', 'Audio-Visual', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Audio-Visual', 'audiovisual', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea12', 'Event-Logistics', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Event-Logistics', 'eventlogistics', 'style="width: 20px;" ') );
		//----------------------------------------
				
        //Session info
        //----------------------------------------      
        Spacer::Render(0, 40);
        echo('<b>Session Info</b>');
        Spacer::Render(0, 5);
        echo('<hr />');
        echo('<table border="1" style="clear: left; display: block; float: left; margin: 0 0 0px 2px;">');
        echo('<caption><center><b>Satsang Timing</b></center></caption>');
        echo('<th><center><b>&nbspSession&nbsp</b></center></th>');
        echo('<th><center><b>&nbspTime&nbsp</b></center></th>');
        echo('<tr><td><center>&nbspAM&nbsp</center></td><td><center>&nbsp9:00am - 10:30am&nbsp</center></td></tr>');
        echo('<tr><td><center>&nbspPM&nbsp</center></td><td><center>&nbsp11:45am - 1:15pm&nbsp</center></td></tr>');
        echo('<tr><td><center>&nbspPM2&nbsp</center></td><td><center>&nbsp2:15pm - 3:45pm&nbsp</center></td></tr>');
        echo('</table>');
        Spacer::Render(0, 100);
        echo('<table border="1" style="clear: left; display: block; float: left; margin: 10px 0 0 2px;">');
        echo('<caption><center><b>Balavihar Timing</b></center></caption>');
        echo('<th><center><b>&nbspSession&nbsp</b></center></th>');
        echo('<th><center><b>&nbspTime&nbsp</b></center></th>');
        echo('<th><center><b>&nbspGrades&nbsp</b></center></th>');
        echo('<tr><td><center>&nbspAM&nbsp</center></td><td><center>&nbsp9:00am - 10:30am&nbsp</center></td><td><center>&nbspPreK - 12&nbsp</center></td></tr>');
        echo('<tr><td><center>&nbspPM&nbsp</center></td><td><center>&nbsp11:45am - 1:15pm&nbsp</center></td><td><center>&nbspPreK - 9&nbsp</center></td></tr>');
        echo('<tr><td><center>&nbspPM2&nbsp</center></td><td><center>&nbsp2:15pm - 3:45pm&nbsp</center></td><td><center>&nbspPreK - 8&nbsp</center></td></tr>');
        echo('</table>');
        Spacer::Render(0, 100);
        echo('<table border="1" style="clear: left; display: block; float: left; margin: 10px 0 0px 2px;">');
        echo('<caption><center><b>Language Timing</b></center></caption>');
        echo('<th><center><b>&nbspSession&nbsp</b></center></th>');
        echo('<th><center><b>&nbspTime&nbsp</b></center></th>');
        echo('<tr><td><center>&nbspAM&nbsp</center></td><td><center>&nbsp10:30am - 11:30am&nbsp</center></td></tr>');
        echo('<tr><td><center>&nbspPM&nbsp</center></td><td><center>&nbsp1:15pm - 2:15pm&nbsp</center></td></tr>');
        echo('</table>');
        Spacer::Render(0, 40);
                
		//Household info (stored with primary member)
		//----------------------------------------		
		Spacer::Render(0, 150);
		echo('<b>Household Info</b>');
		echo('<hr />');
		Form::OpenFormItem('Home Address 1*:', 260);
			echo( form_input(array('name'=>'homeAddress1','id'=>'homeAddress1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Home Address 2:', 260);
			echo( form_input(array('name'=>'homeAddress2','id'=>'homeAddress2','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('City*:', 260);
			echo( form_input(array('name'=>'city','id'=>'city','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('State*:', 260);
			$stateOptions = array(''=>'Select','AL'=>'Alabama','AK'=>'Alaska','AZ'=>'Arizona','AR'=>'Arkansas','CA'=>'California','CO'=>'Colorado','CT'=>'Connecticut','DE'=>'Delaware','DC'=>'District of Columbia','FL'=>'Florida','GA'=>'Georgia','HI'=>'Hawaii','ID'=>'Idaho','IL'=>'Illinois','IN'=>'Indiana','IA'=>'Iowa','KS'=>'Kansas','KY'=>'Kentucky','LA'=>'Louisiana','ME'=>'Maine','MD'=>'Maryland','MA'=>'Massachusetts','MI'=>'Michigan','MN'=>'Minnesota','MS'=>'Mississippi','MO'=>'Missouri','MT'=>'Montana','NE'=>'Nebraska','NV'=>'Nevada','NH'=>'New Hampshire','NJ'=>'New Jersey','NM'=>'New Mexico','NY'=>'New York','NC'=>'North Carolina','ND'=>'North Dakota','OH'=>'Ohio','OK'=>'Oklahoma','OR'=>'Oregon','PA'=>'Pennsylvania','RI'=>'Rhode Island','SC'=>'South Carolina','SD'=>'South Dakota','TN'=>'Tennessee','TX'=>'Texas','UT'=>'Utah','VT'=>'Vermont','VA'=>'Virginia','WA'=>'Washington','WV'=>'West Virginia','WI'=>'Wisconsin','WY'=>'Wyoming');
			echo( form_dropdown('state', $stateOptions, '', 'id="state" style="width: 120px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Zip Code*:', 260);
			echo( form_input(array('name'=>'zipCode','id'=>'zipCode','style'=>'width: 100px;')) );
		Form::CloseFormItem();
		//----------------------------------------
		
		//Household info
		//----------------------------------------	
		//Form::OpenFormItem('CMB Life Member?* <font size="1"> <a href="https://www.cmbmembersstage.org/cmb/member_info/life_membership" target="_blank">Life Membership</a></font>:', 260);
		//Form::OpenFormItem('CMB Life Member?*:', 260);
			//$lifeMemberOptions = array(''=>'Select','no'=>'No','yes'=>'Yes');
			//echo( form_dropdown('lifeMember', $lifeMemberOptions, '', 'id="lifeMember" style="width: 75px;" ') );
		//Form::CloseFormItem();		
		Spacer::Render(0, 7);
		Form::OpenFormItem('Satsang Session:*</font>', 260);
			$satsangOptions = array(''=>'Select','AM'=>'AM', 'PM'=>'PM', 'PM2'=>'PM2');
			echo( form_dropdown('primaryAttendSatsang', $satsangOptions, '', 'id="primaryAttendSatsang" style="width: 75px;" ') );
		Form::CloseFormItem();	
		//----------------------------------------
		
		//Children info
		//----------------------------------------		
		Spacer::Render(0, 15);
		echo('<b>Children Info</b>');
		echo('<hr />');
		Form::OpenFormItem('Number of children that will attend Balavihar/Youth Group:', 260);
			$numChildrenOptions = array(''=>'None','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6');
			echo( form_dropdown('numChildren', $numChildrenOptions, '', 'id="numChildren" style="width: 75px;" onchange="numChildrenChangeHandler();"') );
		Form::CloseFormItem();
		Spacer::Render(0, 12);
		
		echo('<div id="child1" style="display: none; ">');
		Form::OpenFormItem('Child #1 First Name*:', 260);
			echo( form_input(array('name'=>'childFN1','id'=>'childFN1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Last Name*:', 260);
			echo( form_input(array('name'=>'childLN1','id'=>'childLN1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Gender*:', 260);
			$genderOptions1 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childG1', $genderOptions1, '', 'id="childG1" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Email:', 260);
			echo( form_input(array('name'=>'childEM1','id'=>'childEM1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOB1','id'=>'childDOB1','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOB1":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Grade*:', 260);
			$gradeOptions1 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrade1', $gradeOptions1, '', 'id="childGrade1" style="width: 75px;"') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Balavihar Session*: </br><font size="2" color="red">(preference not guaranteed, we will try to accommodate your session preference based on availability in each class)</font>', 260);
			//$bvSessionOptions = array(''=>'Select','PM'=>'PM', 'PM2'=>'PM2');
            $bvSessionOptions = array(''=>'Select','AM'=>'AM', 'PM'=>'PM', 'PM2'=>'PM2');
			echo( form_dropdown('childSession1', $bvSessionOptions, '', 'id="childSession1" style="width: 75px;" ') );
		Form::CloseFormItem();
	
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #1 Language Classes:', 260);	
		Form::CloseFormItem();
		
		Form::OpenFormItemSummary('Child #1 Language </br><font size="2" color="red">(Telugu and Hindi languages are offered in the 2nd (PM) language session)</font>:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child1Lang', $langLevel, '', 'id="child1Lang" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #1 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child1LangLevel1', $langLevel, '', 'id="child1LangLevel1" style="width: 100px;"') );
		Form::CloseFormItem();
        Spacer::Render(0, 2);
        Form::OpenFormItemSummary('Child #1 Language Session:', 260);
            $langsess = array('AM'=>'AM', 'PM'=>'PM');
            echo( form_dropdown('child1LangSession', $langsess, '', 'id="child1LangSession" style="width: 100px;"') );
        Form::CloseFormItem();
		Spacer::Render(0, 3);				
		
		echo('</div>');

		echo('<div id="child2" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />'); 
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #2 First Name*:', 260);
			echo( form_input(array('name'=>'childFN2','id'=>'childFN2','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Last Name*:', 260);
			echo( form_input(array('name'=>'childLN2','id'=>'childLN2','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Gender*:', 260);
			$genderOptions2 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childG2', $genderOptions2, '', 'id="childG2" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Email:', 260);
			echo( form_input(array('name'=>'childEM2','id'=>'childEM2','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOB2','id'=>'childDOB2','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOB2":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Grade*:', 260);
			$gradeOptions2 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrade2', $gradeOptions2, '', 'id="childGrade2" style="width: 75px;"') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Balavihar Session*: </br><font size="2" color="red">(preference not guaranteed, we will try to accommodate your session preference based on availability in each class)</font>', 260);
            //$bvSessionOptions = array(''=>'Select','PM'=>'PM', 'PM2'=>'PM2');
            $bvSessionOptions = array(''=>'Select','AM'=>'AM', 'PM'=>'PM', 'PM2'=>'PM2');
			echo( form_dropdown('childSession2', $bvSessionOptions, '', 'id="childSession2" style="width: 75px;" ') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #2 Language Classes:', 260);	
		Form::CloseFormItem();
		
		Form::OpenFormItemSummary('Child #2 Language </br><font size="2" color="red">(Telugu and Hindi languages are offered in the 2nd (PM) language session)</font>:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child2Lang', $langLevel, '', 'id="child2Lang" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #2 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child2LangLevel1', $langLevel, '', 'id="child2LangLevel1" style="width: 100px;"') );
		Form::CloseFormItem();
        Spacer::Render(0, 2);
        Form::OpenFormItemSummary('Child #2 Language Session:', 260);
            $langsess = array('AM'=>'AM', 'PM'=>'PM');
            echo( form_dropdown('child2LangSession', $langsess, '', 'id="child2LangSession" style="width: 100px;"') );
        Form::CloseFormItem();
		Spacer::Render(0, 3);				

		echo('</div>');

		echo('<div id="child3" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #3 First Name*:', 260);
			echo( form_input(array('name'=>'childFN3','id'=>'childFN3','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Last Name*:', 260);
			echo( form_input(array('name'=>'childLN3','id'=>'childLN3','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Gender*:', 260);
			$genderOptions3 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childG3', $genderOptions3, '', 'id="childG3" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Email:', 260);
			echo( form_input(array('name'=>'childEM3','id'=>'childEM3','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOB3','id'=>'childDOB3','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOB3":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Grade*:', 260);
			$gradeOptions3 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrade3', $gradeOptions3, '', 'id="childGrade3" style="width: 75px;"') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Balavihar Session*: </br><font size="2" color="red">(preference not guaranteed, we will try to accommodate your session preference based on availability in each class)</font>', 260);
            //$bvSessionOptions = array(''=>'Select','PM'=>'PM', 'PM2'=>'PM2');
            $bvSessionOptions = array(''=>'Select','AM'=>'AM', 'PM'=>'PM', 'PM2'=>'PM2');
			echo( form_dropdown('childSession3', $bvSessionOptions, '', 'id="childSession3" style="width: 75px;" ') );
		Form::CloseFormItem();

		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #3 Language Classes:', 260);	
		Form::CloseFormItem();
		
		Form::OpenFormItemSummary('Child #3 Language </br><font size="2" color="red">(Telugu and Hindi languages are offered in the 2nd (PM) language session)</font>:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child3Lang', $langLevel, '', 'id="child3Lang" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #3 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child3LangLevel1', $langLevel, '', 'id="child3LangLevel1" style="width: 100px;"') );
		Form::CloseFormItem();
        Spacer::Render(0, 2);
        Form::OpenFormItemSummary('Child #3 Language Session:', 260);
            $langsess = array('AM'=>'AM', 'PM'=>'PM');
            echo( form_dropdown('child3LangSession', $langsess, '', 'id="child3LangSession" style="width: 100px;"') );
        Form::CloseFormItem();
		Spacer::Render(0, 3);				

		echo('</div>');

		echo('<div id="child4" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #4 First Name*:', 260);
			echo( form_input(array('name'=>'childFN4','id'=>'childFN4','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Last Name*:', 260);
			echo( form_input(array('name'=>'childLN4','id'=>'childLN4','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Gender*:', 260);
			$genderOptions4 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childG4', $genderOptions4, '', 'id="childG4" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Email:', 260);
			echo( form_input(array('name'=>'childEM4','id'=>'childEM4','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOB4','id'=>'childDOB4','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOB4":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Grade*:', 260);
			$gradeOptions4 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrade4', $gradeOptions4, '', 'id="childGrade4" style="width: 75px;"') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Balavihar Session*: </br><font size="2" color="red">(preference not guaranteed, we will try to accommodate your session preference based on availability in each class)</font>', 260);
            //$bvSessionOptions = array(''=>'Select','PM'=>'PM', 'PM2'=>'PM2');
            $bvSessionOptions = array(''=>'Select','AM'=>'AM', 'PM'=>'PM', 'PM2'=>'PM2');
			echo( form_dropdown('childSession4', $bvSessionOptions, '', 'id="childSession4" style="width: 75px;" ') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #4 Language Classes:', 260);	
		Form::CloseFormItem();
		
		Form::OpenFormItemSummary('Child #4 Language </br><font size="2" color="red">(Telugu and Hindi languages are offered in the 2nd (PM) language session)</font>:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child4Lang', $langLevel, '', 'id="child4Lang" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #4 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child4LangLevel1', $langLevel, '', 'id="child4LangLevel1" style="width: 100px;"') );
		Form::CloseFormItem();
        Spacer::Render(0, 2);
        Form::OpenFormItemSummary('Child #4 Language Session:', 260);
            $langsess = array('AM'=>'AM', 'PM'=>'PM');
            echo( form_dropdown('child4LangSession', $langsess, '', 'id="child4LangSession" style="width: 100px;"') );
        Form::CloseFormItem();
		Spacer::Render(0, 3);				

		echo('</div>');

		echo('<div id="child5" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #5 First Name*:', 260);
			echo( form_input(array('name'=>'childFN5','id'=>'childFN5','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Last Name*:', 260);
			echo( form_input(array('name'=>'childLN5','id'=>'childLN5','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Gender*:', 260);
			$genderOptions5 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childG5', $genderOptions5, '', 'id="childG5" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Email:', 260);
			echo( form_input(array('name'=>'childEM5','id'=>'childEM5','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOB5','id'=>'childDOB5','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOB5":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Grade*:', 260);
			$gradeOptions5 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrade5', $gradeOptions5, '', 'id="childGrade5" style="width: 75px;"') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Balavihar Session*: </br><font size="2" color="red">(preference not guaranteed, we will try to accommodate your session preference based on availability in each class)</font>', 260);
            //$bvSessionOptions = array(''=>'Select','PM'=>'PM', 'PM2'=>'PM2');
            $bvSessionOptions = array(''=>'Select','AM'=>'AM', 'PM'=>'PM', 'PM2'=>'PM2');
			echo( form_dropdown('childSession5', $bvSessionOptions, '', 'id="childSession5" style="width: 75px;" ') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #5 Language Classes:', 260);	
		Form::CloseFormItem();
		
		Form::OpenFormItemSummary('Child #5 Language </br><font size="2" color="red">(Telugu and Hindi languages are offered in the 2nd (PM) language session)</font>:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child5Lang', $langLevel, '', 'id="child5Lang" style="width: 100px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #5 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child5LangLevel1', $langLevel, '', 'id="child5LangLevel1" style="width: 100px;"') );
		Form::CloseFormItem();
        Spacer::Render(0, 2);
        Form::OpenFormItemSummary('Child #5 Language Session:', 260);
            $langsess = array('AM'=>'AM', 'PM'=>'PM');
            echo( form_dropdown('child5LangSession', $langsess, '', 'id="child5LangSession" style="width: 100px;"') );
        Form::CloseFormItem();
		Spacer::Render(0, 3);				

		echo('</div>');

		echo('<div id="child6" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #6 First Name*:', 260);
			echo( form_input(array('name'=>'childFN6','id'=>'childFN6','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Last Name*:', 260);
			echo( form_input(array('name'=>'childLN6','id'=>'childLN6','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Gender*:', 260);
			$genderOptions6 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childG6', $genderOptions6, '', 'id="childG6" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Email:', 260);
			echo( form_input(array('name'=>'childEM6','id'=>'childEM6','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOB6','id'=>'childDOB6','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOB6":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Grade*:', 260);
			$gradeOptions6 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrade6', $gradeOptions6, '', 'id="childGrade6" style="width: 75px;"') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Balavihar Session*: </br><font size="2" color="red">(preference not guaranteed, we will try to accommodate your session preference based on availability in each class)</font>', 260);
            //$bvSessionOptions = array(''=>'Select','PM'=>'PM', 'PM2'=>'PM2');
            $bvSessionOptions = array(''=>'Select','AM'=>'AM', 'PM'=>'PM', 'PM2'=>'PM2');
			echo( form_dropdown('childSession6', $bvSessionOptions, '', 'id="childSession6" style="width: 75px;" ') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #6 Language Classes:', 260);	
		Form::CloseFormItem();
		
		Form::OpenFormItemSummary('Child #6 Language </br><font size="2" color="red">(Telugu and Hindi languages are offered in the 2nd (PM) language session)</font>:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child6Lang', $langLevel, '', 'id="child6Lang" style="width: 100px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #6 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child6LangLevel1', $langLevel, '', 'id="child6LangLevel1" style="width: 100px;"') );
		Form::CloseFormItem();				
        Spacer::Render(0, 2);
        Form::OpenFormItemSummary('Child #6 Language Session:', 260);
            $langsess = array('AM'=>'AM', 'PM'=>'PM');
            echo( form_dropdown('child6LangSession', $langsess, '', 'id="child6LangSession" style="width: 100px;"') );
        Form::CloseFormItem();

		echo('</div>');
		//----------------------------------------
		
		//Payment Info
		//----------------------------------------		
		Spacer::Render(0, 15);
		echo('<b>Financial</b>');
		echo('<hr />');
		Form::OpenFormItem('CMB Registration Donation:</br><a href="https://www.cmbmembers.org/cmb/member_info/satsangh_importance/" target="_blank"><font size="1">Importance of Satsang</font></a>', 260);
			echo( form_label('<b>$' . $this->Walk_proxy->getCurrentRegAmount('Andover') . '</b>', 'Level', 'style="width: 20px;" ') );
		Form::CloseFormItem();
/*		
		echo('<div id="bvfee1" style="display: none; ">');		
		Form::OpenFormItem('<b>Balavihar Registration:</b></br><font size="2" color="red">(one child)</font>', 260);
			echo( form_label('<b>$75</b>', 'Level', 'style="width: 20px;" ') );
		Form::CloseFormItem();
		echo('</div>');

		echo('<div id="bvfee2" style="display: none; ">');		
		Form::OpenFormItem('<b>Balavihar Registration:</b></br><font size="2" color="red">(two or more children)</font>', 260);
			echo( form_label('<b>$150</b>', 'Level', 'style="width: 20px;" ') );
		Form::CloseFormItem();
		echo('</div>');
*/
		Spacer::Render(0, 5);
		
		Form::OpenFormItem('Make a General Donation:', 260);
			echo( form_input(array('name'=>'donationamount','id'=>'donationamount','style'=>'width: 100px;')) );
			//$donationOptions = array(''=>'Select','yes'=>'Yes','no'=>'No');
			//echo( form_dropdown('donationopt', $donationOptions, '', 'id="donationopt" style="width: 75px;" onchange="donationChangeHandler();"') );
		Form::CloseFormItem();
		//echo('<div id="donationdisp" style="display: none;">');	
		//Form::OpenFormItem('Donation amount:', 260);
			//$donationAmountOptions = array('50'=>'$50','100'=>'$100','500'=>'$500','1000'=>'$1000','2500'=>'$2500','5000'=>'$5000','10000'=>'$10000');
			//echo( form_dropdown('donationamount', $donationAmountOptions, '', 'id="donationamount" style="width: 75px;"') );
		//Form::CloseFormItem();
		//echo('</div>');
		
		Spacer::Render(0, 5);
		
		Form::OpenFormItem('Any questions regarding registration or fees, please email us with your name and phone# and we will contact you', 255);
			//echo( form_label('Any questions about registration or fees, please email: ' , 'Level', 'style="width: 260px;" ') );
			echo safe_mailto("cmbproject@gmail.com","Registration Questions","");
		Form::CloseFormItem();

		Spacer::Render(0, 15);
		
		echo('<b>Feedback</b>');
		echo('<hr />');
		Form::OpenFormItem('Please provide any feedback (confidential) on how we can improve services and programs:', 260);
			echo( form_textarea(array('name'=>'comments','id'=>'comments','maxlength'=>'8000','rows'=>'15','cols'=>'80','style'=>'width: 400px;')) );
		Form::CloseFormItem();
		
		echo('</div>');
		//End of Andover Center

        //Case for MetroWest center
		echo('<div id="centerMW" style="display: none; ">');
		//Primary member info
		//----------------------------------------
		Spacer::Render(0, 15);
		echo('<b>Primary Member Info</b>');
		echo('<hr />');
		Form::OpenFormItem('Primary Member First Name*:', 260);
			echo( form_input(array('name'=>'firstName1','id'=>'firstName1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Primary Member Last Name*:', 260);
			echo( form_input(array('name'=>'lastName1','id'=>'lastName1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Security question*:', 260);
			$phraseOptions = array(''=>'Select','Fathers name'=>'Fathers name','Mothers name'=>'Mothers name','City you were born'=>'City you were born','Favorite color'=>'Favorite color','First company'=>'First company','Other'=>'Other');
			echo( form_dropdown('question1', $phraseOptions, '', 'id="question1" style="width: 150px;" ') );
		Form::CloseFormItem();	
		Form::OpenFormItem('Answer to security question?*:', 260);
			echo( form_input(array('name'=>'secretPhrase1','id'=>'secretPhrase1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Primary Member Gender*:', 260);
			$genderOptions = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('gender1', $genderOptions, '', 'id="gender1" style="width: 75px;" ') );
		Form::CloseFormItem();	
		Form::OpenFormItem('Primary Member Email*:', 260);
			echo( form_input(array('name'=>'primaryEmail1','id'=>'primaryEmail1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Confirm Primary Member Email*:', 260);
			echo( form_input(array('name'=>'primaryEmail1Confirm','id'=>'primaryEmail1Confirm','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Primary Member Home Phone*: </br><font size="2" color="red">(xxx-xxx-xxxx)</font>', 260);
			echo( form_input(array('name'=>'homePhoneNumber1','id'=>'homePhoneNumber1','maxlength'=>'12','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Primary Member Mobile Phone*: </br><font size="2" color="red">(xxx-xxx-xxxx)</font>', 260);
			echo( form_input(array('name'=>'mobilePhoneNumber1','id'=>'mobilePhoneNumber1','maxlength'=>'12','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Company name (0ptional):', 260);
			echo( form_input(array('name'=>'company1','id'=>'company1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Interested in volunteering (check all that apply):', 360);
		Form::CloseFormItem();
		Spacer::Render(0, 2);
		echo( form_checkbox('volArea1mw', 'Temple', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Temple', 'temple', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea2mw', 'Balavihar', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Balavihar', 'balavihar', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea3mw', 'Language', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Language', 'language', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea4mw', 'Seva', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Seva', 'seva', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea5mw', 'Spiritual', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Spiritual', 'spiritual', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea6mw', 'Cultural', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Cultural', 'cultural', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea7mw', 'Marketing', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Marketing', 'marketing', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea8mw', 'Website', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Website', 'website', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea9mw', 'Accounting', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Accounting', 'accounting', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea10mw', 'Fund-Raising', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Fund-Raising', 'fundraising', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea11mw', 'Audio-Visual', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Audio-Visual', 'audiovisual', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('volArea12mw', 'Event-Logistics', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Event-Logistics', 'eventlogistics', 'style="width: 20px;" ') );

		//----------------------------------------
				
		//Spouse info
		//----------------------------------------
		Spacer::Render(0, 20);
		echo('<b>Spouse Info</b>');
		echo('<hr />');
		Form::OpenFormItem('Spouse First Name:', 260);
			echo( form_input(array('name'=>'spouseFirstName1','id'=>'spouseFirstName1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Last Name:', 260);
			echo( form_input(array('name'=>'spouseLastName1','id'=>'spouseLastName1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Gender*:', 260);
			$genderOptions = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('spouseGender1', $genderOptions, '', 'id="spouseGender1" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Email*:', 260);
			echo( form_input(array('name'=>'spouseEmail1','id'=>'spouseEmail1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Confirm Spouse Email*:', 260);
			echo( form_input(array('name'=>'spouseEmail1Confirm','id'=>'spouseEmail1Confirm','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Home Phone Number*: </br><font size="2" color="red">(xxx-xxx-xxxx)</font>', 260);
			echo( form_input(array('name'=>'spousePhone1','id'=>'spousePhone1','maxlength'=>'12','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Spouse Mobile Phone Number*: </br><font size="2" color="red">(xxx-xxx-xxxx)</font>', 260);
			echo( form_input(array('name'=>'spouseMobilePhone1','id'=>'spouseMobilePhone1','maxlength'=>'12','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Interested in volunteering (check all that apply):', 360);
		Form::CloseFormItem();
		Spacer::Render(0, 2);
		echo( form_checkbox('spouseVolArea1mw', 'Temple', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Temple', 'temple', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea2mw', 'Balavihar', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Balavihar', 'balavihar', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea3mw', 'Language', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Language', 'language', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea4mw', 'Seva', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Seva', 'seva', 'style="width: 20px;" ') );
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea5mw', 'Spiritual', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Spiritual', 'spiritual', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea6mw', 'Cultural', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Cultural', 'cultural', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea7mw', 'Marketing', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Marketing', 'marketing', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea8mw', 'Website', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Website', 'website', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea9mw', 'Accounting', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Accounting', 'accounting', 'style="width: 20px;" ') );	
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea10mw', 'Fund-Raising', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Fund-Raising', 'fundraising', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea11mw', 'Audio-Visual', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Audio-Visual', 'audiovisual', 'style="width: 20px;" ') );		
		Spacer::Render(0, 6);
		echo( form_checkbox('spouseVolArea12mw', 'Event-Logistics', FALSE, 'style="width: 20px;" ') );
		echo( form_label('Event-Logistics', 'eventlogistics', 'style="width: 20px;" ') );
		//----------------------------------------
				
        //Session info
        //----------------------------------------      
        Spacer::Render(0, 40);
        echo('<b>Session Info</b>');
        Spacer::Render(0, 5);
        echo('<hr />');
        echo('<table border="1" style="clear: left; display: block; float: left; margin: 0 0 0px 2px;">');
        echo('<caption><center><b>Satsang Timing</b></center></caption>');
        echo('<th><center><b>&nbspSession&nbsp</b></center></th>');
        echo('<th><center><b>&nbspTime&nbsp</b></center></th>');
        echo('<tr><td><center>&nbspPM&nbsp</center></td><td><center>&nbsp3:30pm - 5:00pm&nbsp</center></td></tr>');
        echo('</table>');
        Spacer::Render(0, 100);
        echo('<table border="1" style="clear: left; display: block; float: left; margin: 10px 0 0 2px;">');
        echo('<caption><center><b>Balavihar Timing</b></center></caption>');
        echo('<th><center><b>&nbspSession&nbsp</b></center></th>');
        echo('<th><center><b>&nbspTime&nbsp</b></center></th>');
        echo('<th><center><b>&nbspGrades&nbsp</b></center></th>');
        echo('<tr><td><center>&nbspPM&nbsp</center></td><td><center>&nbsp3:30pm - 5:00pm&nbsp</center></td><td><center>&nbspPreK - 12&nbsp</center></td></tr>');
        echo('</table>');
        Spacer::Render(0, 100);
        echo('<table border="1" style="clear: left; display: block; float: left; margin: 10px 0 0px 2px;">');
        echo('<caption><center><b>Language Timing</b></center></caption>');
        echo('<th><center><b>&nbspSession&nbsp</b></center></th>');
        echo('<th><center><b>&nbspTime&nbsp</b></center></th>');
        echo('<tr><td><center>&nbspPM&nbsp</center></td><td><center>&nbsp2:30pm - 3:30pm&nbsp</center></td></tr>');
        echo('</table>');        
        Spacer::Render(0, 80);
		
		//Household info (stored with primary member)
		//----------------------------------------		
		Spacer::Render(0, 20);
		echo('<b>Household Info</b>');
		echo('<hr />');
		Form::OpenFormItem('Home Address 1*:', 260);
			echo( form_input(array('name'=>'homeAddress1mw','id'=>'homeAddress1mw','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Home Address 2:', 260);
			echo( form_input(array('name'=>'homeAddress2mw','id'=>'homeAddress2mw','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('City*:', 260);
			echo( form_input(array('name'=>'city1','id'=>'city1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('State*:', 260);
			$stateOptions = array(''=>'Select','AL'=>'Alabama','AK'=>'Alaska','AZ'=>'Arizona','AR'=>'Arkansas','CA'=>'California','CO'=>'Colorado','CT'=>'Connecticut','DE'=>'Delaware','DC'=>'District of Columbia','FL'=>'Florida','GA'=>'Georgia','HI'=>'Hawaii','ID'=>'Idaho','IL'=>'Illinois','IN'=>'Indiana','IA'=>'Iowa','KS'=>'Kansas','KY'=>'Kentucky','LA'=>'Louisiana','ME'=>'Maine','MD'=>'Maryland','MA'=>'Massachusetts','MI'=>'Michigan','MN'=>'Minnesota','MS'=>'Mississippi','MO'=>'Missouri','MT'=>'Montana','NE'=>'Nebraska','NV'=>'Nevada','NH'=>'New Hampshire','NJ'=>'New Jersey','NM'=>'New Mexico','NY'=>'New York','NC'=>'North Carolina','ND'=>'North Dakota','OH'=>'Ohio','OK'=>'Oklahoma','OR'=>'Oregon','PA'=>'Pennsylvania','RI'=>'Rhode Island','SC'=>'South Carolina','SD'=>'South Dakota','TN'=>'Tennessee','TX'=>'Texas','UT'=>'Utah','VT'=>'Vermont','VA'=>'Virginia','WA'=>'Washington','WV'=>'West Virginia','WI'=>'Wisconsin','WY'=>'Wyoming');
			echo( form_dropdown('state1', $stateOptions, '', 'id="state1" style="width: 120px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Zip Code*:', 260);
			echo( form_input(array('name'=>'zipCode1','id'=>'zipCode1','style'=>'width: 100px;')) );
		Form::CloseFormItem();
		//----------------------------------------
		
		//Household info
		//----------------------------------------	
		//Form::OpenFormItem('CMB Life Member?* <font size="1"> <a href="https://www.cmbmembers.org/cmb/member_info/life_membership" target="_blank">Life Membership</a></font>:', 260);
		//Form::OpenFormItem('CMB Life Member?*:', 260);
			//$lifeMemberOptions = array(''=>'Select','no'=>'No','yes'=>'Yes');
			//echo( form_dropdown('lifeMember1', $lifeMemberOptions, '', 'id="lifeMember1" style="width: 75px;" ') );
		//Form::CloseFormItem();		
		//----------------------------------------
		
		//Children info
		//----------------------------------------		
		Spacer::Render(0, 15);
		echo('<b>Children Info</b>');
		echo('<hr />');
		Form::OpenFormItem('Number of children that will attend Balavihar/Youth Group:', 260);
			$numChildrenOptions = array(''=>'None','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6');
			echo( form_dropdown('numChildren1', $numChildrenOptions, '', 'id="numChildren1" style="width: 75px;" onchange="numChildrenChangeHandler1();"') );
		Form::CloseFormItem();
		Spacer::Render(0, 12);
		
		echo('<div id="child1mw" style="display: none; ">');
		Form::OpenFormItem('Child #1 First Name*:', 260);
			echo( form_input(array('name'=>'childFNmw1','id'=>'childFN1mw','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Last Name*:', 260);
			echo( form_input(array('name'=>'childLNmw1','id'=>'childLNmw1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Gender*:', 260);
			$genderOptions1 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childGmw1', $genderOptions1, '', 'id="childGmw1" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Email:', 260);
			echo( form_input(array('name'=>'childEMmw1','id'=>'childEMmw1','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOBmw1','id'=>'childDOBmw1','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOBmw1":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #1 Grade*:', 260);
			$gradeOptions1 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrademw1', $gradeOptions1, '', 'id="childGrademw1" style="width: 75px;"') );
		Form::CloseFormItem();
	
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #1 Language Classes:', 260);	
		Form::CloseFormItem();
		
		Form::OpenFormItemSummary('Child #1 Language:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child1Langmw', $langLevel, '', 'id="child1Langmw" style="width: 100px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #1 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child1LangLevelmw1', $langLevel, '', 'id="child1LangLevelmw1" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 3);				
		
		echo('</div>');

		echo('<div id="child2mw" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');		
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #2 First Name*:', 260);
			echo( form_input(array('name'=>'childFNmw2','id'=>'childFNmw2','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Last Name*:', 260);
			echo( form_input(array('name'=>'childLNmw2','id'=>'childLNmw2','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Gender*:', 260);
			$genderOptions2 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childGmw2', $genderOptions2, '', 'id="childGmw2" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Email:', 260);
			echo( form_input(array('name'=>'childEMmw2','id'=>'childEMmw2','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOBmw2','id'=>'childDOBmw2','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOBmw2":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #2 Grade*:', 260);
			$gradeOptions2 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrademw2', $gradeOptions2, '', 'id="childGrademw2" style="width: 75px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #2 Language Classes:', 260);	
		Form::CloseFormItem();

		Form::OpenFormItemSummary('Child #2 Language:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child2Langmw', $langLevel, '', 'id="child2Langmw" style="width: 100px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #2 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child2LangLevelmw1', $langLevel, '', 'id="child2LangLevelmw1" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 3);				

		echo('</div>');

		echo('<div id="child3mw" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #3 First Name*:', 260);
			echo( form_input(array('name'=>'childFNmw3','id'=>'childFNmw3','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Last Name*:', 260);
			echo( form_input(array('name'=>'childLNmw3','id'=>'childLNmw3','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Gender*:', 260);
			$genderOptions3 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childGmw3', $genderOptions3, '', 'id="childGmw3" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Email:', 260);
			echo( form_input(array('name'=>'childEM3','id'=>'childEM3','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOBmw3','id'=>'childDOBmw3','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOBmw3":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #3 Grade*:', 260);
			$gradeOptions3 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrademw3', $gradeOptions3, '', 'id="childGrademw3" style="width: 75px;"') );
		Form::CloseFormItem();

		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #3 Language Classes:', 260);	
		Form::CloseFormItem();

		Form::OpenFormItemSummary('Child #3 Language:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child3Langmw', $langLevel, '', 'id="child3Langmw" style="width: 100px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #3 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child3LangLevelmw1', $langLevel, '', 'id="child3LangLevelmw1" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 3);				

		echo('</div>');

		echo('<div id="child4mw" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #4 First Name*:', 260);
			echo( form_input(array('name'=>'childFNmw4','id'=>'childFNmw4','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Last Name*:', 260);
			echo( form_input(array('name'=>'childLNmw4','id'=>'childLNmw4','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Gender*:', 260);
			$genderOptions4 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childGmw4', $genderOptions4, '', 'id="childmwG4" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Email:', 260);
			echo( form_input(array('name'=>'childEMmw4','id'=>'childEMmw4','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOBmw4','id'=>'childDOBmw4','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOBmw4":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #4 Grade*:', 260);
			$gradeOptions4 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrademw4', $gradeOptions4, '', 'id="childGrademw4" style="width: 75px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #4 Language Classes:', 260);	
		Form::CloseFormItem();

		Form::OpenFormItemSummary('Child #4 Language:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child4Langmw', $langLevel, '', 'id="child4Langmw" style="width: 100px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #4 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child4LangLevelmw1', $langLevel, '', 'id="child4LangLevelmw1" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 3);				

		echo('</div>');

		echo('<div id="child5mw" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #5 First Name*:', 260);
			echo( form_input(array('name'=>'childFN5mw','id'=>'childFN5mw','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Last Name*:', 260);
			echo( form_input(array('name'=>'childLN5mw','id'=>'childLN5mw','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Gender*:', 260);
			$genderOptions5 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childG5mw', $genderOptions5, '', 'id="childG5mw" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Email:', 260);
			echo( form_input(array('name'=>'childEM5mw','id'=>'childEM5mw','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOB5mw','id'=>'childDOB5mw','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOBmw5":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #5 Grade*:', 260);
			$gradeOptions5 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrademw5', $gradeOptions5, '', 'id="childGrademw5" style="width: 75px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #5 Language Classes:', 260);	
		Form::CloseFormItem();

		Form::OpenFormItemSummary('Child #5 Language:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child5Langmw', $langLevel, '', 'id="child5Langmw" style="width: 100px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #5 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child5LangLevelmw1', $langLevel, '', 'id="child5LangLevelmw1" style="width: 100px;"') );
		Form::CloseFormItem();
		Spacer::Render(0, 3);				

		echo('</div>');

		echo('<div id="child6mw" style="display: none;">');
		echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');
		Spacer::Render(0, 15);
		Form::OpenFormItem('Child #6 First Name*:', 260);
			echo( form_input(array('name'=>'childFNmw6','id'=>'childFNmw6','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Last Name*:', 260);
			echo( form_input(array('name'=>'childLNmw6','id'=>'childLNmw6','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Gender*:', 260);
			$genderOptions6 = array(''=>'Select','male'=>'Male','female'=>'Female');
			echo( form_dropdown('childGmw6', $genderOptions6, '', 'id="childGmw6" style="width: 75px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Email:', 260);
			echo( form_input(array('name'=>'childEMmw6','id'=>'childEMmw6','style'=>'width: 250px;')) );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Date Of Birth*:', 260);
			echo( form_input(array('name'=>'childDOBmw6','id'=>'childDOBmw6','style'=>'width: 100px;')) );
			echo( '<script type="text/javascript">datePickerController.createDatePicker( { formElements:{"childDOBmw6":"m-sl-d-sl-Y"} } );</script>' );
		Form::CloseFormItem();
		Form::OpenFormItem('Child #6 Grade*:', 260);
			$gradeOptions6 = array(''=>'Select','Pre-K'=>'Pre-K','K'=>'K','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','11'=>'11','12'=>'12');
			echo( form_dropdown('childGrademw6', $gradeOptions6, '', 'id="childGrademw6" style="width: 75px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 6);
		Form::OpenFormItem('Child #6 Language Classes:', 260);	
		Form::CloseFormItem();

		Form::OpenFormItemSummary('Child #6 Language:', 260);
			$langLevel = array('None'=>'None', 'Gujarati'=>'Gujarati', 'Hindi'=>'Hindi','Kannada'=>'Kannada','Marathi'=>'Marathi','Sanskrit'=>'Sanskrit','Tamil'=>'Tamil','Telugu'=>'Telugu');
			echo( form_dropdown('child6Langmw', $langLevel, '', 'id="child6Langmw" style="width: 100px;"') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 2);
		Form::OpenFormItemSummary('Child #6 Language Level:', 260);
			$langLevel = array('None'=>'None', 'beginner'=>'Beginner', 'intermediate'=>'Intermediate','advanced'=>'Advanced');
			echo( form_dropdown('child6LangLevelmw1', $langLevel, '', 'id="child6LangLevelmw1" style="width: 100px;"') );
		Form::CloseFormItem();				

		echo('</div>');
		//----------------------------------------
		
		//Payment Info
		//----------------------------------------		
		Spacer::Render(0, 15);
		echo('<b>Financial</b>');
		echo('<hr />');
		Form::OpenFormItem('CMB Registration Donation:</br><a href="https://www.cmbmembers.org/cmb/member_info/satsangh_importance/" target="_blank"><font size="1">Importance of Satsang</font></a>', 260);
			echo( form_label('<b>$' . $this->Walk_proxy->getCurrentRegAmount('MetroWest') . '</b>', 'Level', 'style="width: 20px;" ') );
		Form::CloseFormItem();
		
		Spacer::Render(0, 5);
		
		Form::OpenFormItem('Make a General Donation:', 260);
			echo( form_input(array('name'=>'donationamount1','id'=>'donationamount1','style'=>'width: 100px;')) );
			//$donationOptions = array(''=>'Select','yes'=>'Yes','no'=>'No');
			//echo( form_dropdown('donationopt1', $donationOptions, '', 'id="donationopt1" style="width: 75px;" onchange="donationChangeHandler1();"') );
		Form::CloseFormItem();
		//End of MetroWest Center
		//----------------------------------------			

		Spacer::Render(0, 5);
		
		Form::OpenFormItem('Any questions regarding registration or fees, please email us with your name and phone# and we will contact you', 255);
			//echo( form_label('Any questions about registration or fees, please email: ' , 'Level', 'style="width: 260px;" ') );
			echo safe_mailto("cmbproject@gmail.com","Registration Questions","");
		Form::CloseFormItem();

		Spacer::Render(0, 15);
		echo('<b>Feedback</b>');
		echo('<hr />');
		Form::OpenFormItem('Please provide any feedback (confidential) on how we can improve services and programs:', 260);
			echo( form_textarea(array('name'=>'comments1','id'=>'comments1','maxlength'=>'8000','rows'=>'15','cols'=>'80','style'=>'width: 400px;')) );
		Form::CloseFormItem();

		echo('</div>');
		
		//Handle case for center when using back/forward button on browser
		echo "<script type='text/javascript'>\n";
		echo "var center = $('cmbCenter').options[$('cmbCenter').selectedIndex].value;\n";	
		echo "if (center != '') {\n";
		echo "if (center == 'MetroWest') {\n";
		echo "$('centerMW').show();\n";
		echo "$('centerAndover').hide(); } else {\n";
		echo "$('centerMW').hide();\n";
		echo "$('centerAndover').show(); } }\n";
		echo "</script>\n";		
		
		//Handle case for children when using back/forward button on browser (Andover)
		echo "<script type='text/javascript'>\n";
		echo "var childrenCount = $('numChildren').options[$('numChildren').selectedIndex].value\n";	
		echo "if (childrenCount == '') {\n";
		echo "childrenCount = 0; }\n";
		echo "for( var i = 1; i <= 6; i++ ) {\n";
		echo "if( i <= childrenCount ) {\n";
		echo "$('child' + i).show(); }\n";
		echo "else {\n";
		echo "$('child' + i).hide(); }\n";
		echo "}\n";
		echo "if( childrenCount == 0 ) {\n";
		echo "$('bvfee1').hide();\n";
		echo "$('bvfee2').hide(); }\n";
		echo "if( childrenCount == 1 ) {\n";
		echo "$('bvfee1').show();\n";
		echo "$('bvfee2').hide(); }\n";
		echo "if( childrenCount > 1 ) {\n";
		echo "$('bvfee1').hide();\n";
		echo "$('bvfee2').show(); }\n";
		echo "</script>\n";			
												
		//Handle case for children when using back/forward button on browser (MetroWest)
		echo "<script type='text/javascript'>\n";
		echo "var childrenCount = $('numChildren1').options[$('numChildren1').selectedIndex].value\n";	
		echo "if (childrenCount == '') {\n";
		echo "childrenCount = 0; }\n";
		echo "for( var i = 1; i <= 6; i++ ) {\n";
		echo "if( i <= childrenCount ) {\n";
		echo "$('child' + i + 'mw').show(); }\n";
		echo "else {\n";
		echo "$('child' + i + 'mw').hide(); }\n";
		echo "}\n";
		echo "</script>\n";		

		echo( form_close() );
?>
	
	<div class="form-button-container">
		<?php if($this->config->item('debug')){ ?><a href="javascript: populate();">Populate</a><?php } ?>
		<a href="javascript: validate();"><img src="<?php echo( base_url() );?>assets/images/buttons/next_off.gif" border="0" onmouseover="this.src = '<?php echo( base_url() );?>assets/images/buttons/next_over.gif';" onmousedown="this.src = '<?php echo( base_url() );?>assets/images/buttons/next_on.gif';" onmouseup="this.src = '<?php echo( base_url() );?>assets/images/buttons/next_off.gif';" onmouseout="this.src = '<?php echo( base_url() );?>assets/images/buttons/next_off.gif';" /></a>
	</div>

</div>

<script type="text/javascript">
	function validate()
	{
		new Ajax.Request(baseUrl + 'validation/member_registration_validation/validate_step1/', 
		{
			method:'post',
			parameters: Form.serialize( $('registrationForm') ),
		  	onSuccess: function(response)
			{
				var result = response.responseText;
				
				if( result == 'VALIDATION_SUCCESS' )
				{
					$('registrationForm').submit();
				}
				else
				{
					$('validationErrors').innerHTML = result;
					$('validationErrors').show();
					Effect.ScrollTo('validationErrors', { duration:'0.2', offset:-20 });
				}
			},
			onFailure: function(response){var result = response.responseText; $('validationErrors').innerHTML = result;
					$('validationErrors').show();alert('failed') }
		});
	}

	function numChildrenChangeHandler()
	{
		var childrenCount = $('numChildren').options[$('numChildren').selectedIndex].value;
		if(childrenCount == "")
		{
			childrenCount = 0;
		}
		
		for( var i = 1; i <= 6; i++ )
		{
			if( i <= childrenCount )
			{
				$('child' + i).show();
			}
			else
			{
				$('child' + i).hide();
			}
		}
		
		if ( childrenCount == 0 )
		{
			$('bvfee1').hide();
			$('bvfee2').hide();
		}

		if ( childrenCount == 1 )
		{
			$('bvfee1').show();
			$('bvfee2').hide();
		}
		
		if ( childrenCount > 1 )
		{
			$('bvfee1').hide();
			$('bvfee2').show();
		}
	}

	function numChildrenChangeHandler1()
	{
		var childrenCount = $('numChildren1').options[$('numChildren1').selectedIndex].value;
		if(childrenCount == "")
		{
			childrenCount = 0;
		}
		
		for( var i = 1; i <= 6; i++ )
		{
			if( i <= childrenCount )
			{
				$('child' + i + 'mw').show();
			}
			else
			{
				$('child' + i + 'mw').hide();
			}
		}	
	}

	function donationChangeHandler()
	{
		var $donate = $('donationopt').options[$('donationopt').selectedIndex].value;
		if ($donate == "yes")
		{
			$('donationdisp').show();
		}
		else
		{
			$('donationdisp').hide();
		}
	}
	
	function donationChangeHandler1()
	{
		var $donate = $('donationopt1').options[$('donationopt1').selectedIndex].value;
		if ($donate == "yes")
		{
			$('donationdisp1').show();
		}
		else
		{
			$('donationdisp1').hide();
		}
	}

	function CMBCenterChangeHandler()
	{
		var $center = $('cmbCenter').options[$('cmbCenter').selectedIndex].value;
		
		if ($center == "")
		{
			$('centerMW').hide();
			$('centerAndover').hide();	
		}
		else {
			if ($center == "MetroWest")
			{
				$('centerMW').show();
				$('centerAndover').hide();
			}
			else
			{
				$('centerAndover').show();
				$('centerMW').hide();
			}
		}
	}
</script>

<?php if($this->config->item('debug')){ ?>
<script type="text/javascript">
	function populate()
	{
		/* 
		$('userName').value = 'john.doe';
		$('password').value = 'registerthis';
		*/
		$('firstName').value = 'John'
		$('lastName').value = 'Doe'
		$('gender').selectedIndex = 1;
		$('primaryEmail').value = 'john.doe@email.com';
		$('homePhoneNumber').value = '555-555-5555';
		$('mobilePhoneNumber').value = '';
		$('homeAddress1').value = '123 Sunset Blvd';
		$('homeAddress2').value = '';
		$('city').value = 'Lexington'
		$('state').selectedIndex = 22;
		$('zipCode').value = '02421';
	}
</script>
<?php } ?>